package com.library.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.library.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 书籍Mapper接口
 *
 * @author Library Team
 */
@Mapper
public interface BookMapper extends BaseMapper<Book> {

    /**
     * 分页查询书籍（带搜索条件）
     */
    IPage<Book> selectBookPage(Page<Book> page, @Param("title") String title, @Param("author") String author, @Param("category") String category);

}
